<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                	 <div class="box-header">
                       该"{$info['title']}"话题的评论人数为（<span style="color:red">{$info['number']}</span>）人，评论后的平均分为（<span style="color:red">{$info['avg']}</span>）。
                    </div>
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <table id="list-table" class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info">
                                    <thead>
                                        <tr role="row">
                                            <th class="sorting" tabindex="0" aria-controls="example1">评论人</th>
                                            <th class="sorting" tabindex="0" aria-controls="example1">评论分数</th>
                                            <th class="sorting" tabindex="0" aria-controls="example1">评论时间</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <foreach name="list" item="vo" key="k">
                                            <tr role="row" align="center">
                                                <td style="line-height:34px;">
                                                <if condition="$vo['user']['head_picture'] neq ''">
                                                	<img src="{$vo.user.head_picture}" style="border-radius:50%;" width="34" height="34">
                                                </if>
                                                	{$vo.user.user_name}
                                                </td>
                                                <td style="line-height:34px;">{$vo.level}</td>
                                                <td style="line-height:34px;">{$vo.add_time|date="Y-m-d H:i:s",###}</td>
                                            </tr>
                                        </foreach>
                                    </tbody>
                                    <tfoot>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6 text-left"></div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</div>
<script>
function delfun(obj) {
    if (confirm('确认删除')) {
        $.ajax({
            type: 'post',
            url: $(obj).attr('data-url'),
            data: {
                act: 'del',
                article_id: $(obj).attr('data-id')
            },
            dataType: 'json',
            success: function(data) {
                if (data) {
                    $(obj).parent().parent().remove();
                } else {
                    layer.alert('删除失败', {
                        icon: 2
                    });
                }
            }
        });
    }
    return false;
}
/*
 * 清除活动静态页面缓存
 */
function clearAritcleHtml(article_id) {
    $.ajax({
        type: 'GET',
        url: "{:U('Admin/System/clearAritcleHtml')}",
        data: {
            article_id: article_id
        },
        dataType: 'json',
        success: function(data) {
            layer.alert(data.msg, {
                icon: 2
            });
        }
    });
}
</script>
</body>
</html>
